package com.deyuanyun.pic.pbf.controller.dto;

import com.deyuanyun.pic.common.util.poi.annotation.ExcelReadColumn;
import com.deyuanyun.pic.common.validator.annotations.DataValidate;
import com.deyuanyun.pic.pbf.controller.dto.validata.DefectInfoValidata;
import com.deyuanyun.pic.pbf.controller.dto.validata.PipeLineRequestValidata;
import com.deyuanyun.pic.pbf.controller.dto.validata.RepairTypeValidata;

/**
 * 维修项目前台提交的缺陷点数据Excel
 *  rept为RepairTask的简写。
 * 
 * @author ChenKui
 * @date 2016-06-20
 *
 */
public class RepairDefectInfoExcelVO{


    @ExcelReadColumn(indexChar = "A", columnTitle = "缺陷编号",columnTitleRowNumber = 2,columnTitleCellNumber = "A")
    @DataValidate(notNull = true,myFunction = DefectInfoValidata.class,myFunctionMessage = "缺陷点不存在或已加入别的维修任务")
    private String defectInfoCode;//缺陷点自定义编号

    @ExcelReadColumn(indexChar = "B", columnTitle = "管道名称",columnTitleRowNumber = 2,columnTitleCellNumber = "B")
    @DataValidate(notNull = true,myFunction = PipeLineRequestValidata.class,myFunctionMessage = "Excel中的管道与页面选择的不一致")
    private String pipeLineName;//管道编号
    /*
    @ExcelReadColumn(indexChar = "C", columnTitle = "起点位置")
    @DataValidate(notNull = true,myFunction = PipeSegmentRequestValidata.class,myFunctionMessage = "Excel中的管段与页面选择的不一致")
    private String pipeInspSegmentName;//管段编号
    
    //TODO CK:待处理。beginSignName、endSignName可能是导入表单中不需要的。因为缺陷点应该没有起点位置终点位置才对。
    @ExcelReadColumn(indexChar = "C", columnTitle = "起点位置")
    @DataValidate(notNull = true,myFunction = PipeFromPointRequestValidata.class,myFunctionMessage = "Excel中的起点位置与页面选择的不一致")
    private String beginSignName;//起点位置
    
    @ExcelReadColumn(indexChar = "D", columnTitle = "终点位置")
    @DataValidate(notNull = true,myFunction = PipeToPointRequestValidata.class,myFunctionMessage = "Excel中的终点位置与页面选择的不一致")
    private String endSignName;//终点位置
*/
    @ExcelReadColumn(indexChar = "L", columnTitle = "计划修复方法",columnTitleRowNumber = 2,columnTitleCellNumber = "L")
    @DataValidate(notNull = true,myFunction = RepairTypeValidata.class,myFunctionMessage = "维修方法与系统中已有的不符")
    private String repairType;//计划修复方法


    public String getPipeLineName() {
        return pipeLineName;
    }

    public void setPipeLineName(String pipeLineName) {
        this.pipeLineName = pipeLineName;
    }

    public String getDefectInfoCode() {
        return defectInfoCode;
    }

    public void setDefectInfoCode(String defectInfoCode) {
        this.defectInfoCode = defectInfoCode;
    }

    public String getRepairType() {
        return repairType;
    }

    public void setRepairType(String repairType) {
        this.repairType = repairType;
    }

    
    
}
